package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.entity.Person;

@RestController
public class HelloWorldController {
	
	@GetMapping("/hello")
	public String hello() {
		return "hello world";
	}
	
	@GetMapping("/getPojo")
	public Person getPojo() {
		return new Person("张三", 23);
	}
}
